<?php defined('SYSPATH') or die('No direct script access.');
	
	class Model_Dao_SamplingPeriod extends ORM{
		
		
		protected $_table_name  = 'sampling_periods'; // default: accounts
	    protected $_primary_key = 'id';      // default: id
	    protected $_primary_val = 'k_value';      // default: name (column used as primary value)
	    
	    
	    // default for $_table_columns: use db introspection to find columns and info
	    // see http://v3.kohanaphp.com/guide/api/Database_MySQL#list_columns for all possible column attributes
	    protected $_table_columns = array(
	        'id'   => array('data_type' => 'int',    'is_nullable' => FALSE),
	        'pc_description'  => array('data_type' => 'string', 'is_nullable' => FALSE),
	    	'k_value'  => array('data_type' => 'string', 'is_nullable' => FALSE)
	    	
	    );
		
	    /*
		public function getList(){
			return $this->find_all()->as_array();
		}
		
		public function get($id){
			return $this->find($id);
		}
		
		public function getCount(){
			return $this->count_all();
		}
		
		public function getLimitedList($orderfield, $ordertype,$start,$limit){
			return $this->order_by($orderfield,$ordertype)->limit($limit)->find_all()->as_array();
		}*/
		
		
		
		
	}

?>
